package List;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Vector;

public class VectorTest {
    public static void main(String[] args) {
        Vector vector=new Vector();
        vector.add(1);

        List list=new ArrayList();
        list.add(21);
        list=Collections.synchronizedList(list);
        System.out.println(list);
    }
}
